﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.BaseInformation;
using TyMES.Model;

namespace TyMES.ViewModel.BaseInformation.RouteOperationVMs
{
    public partial class RouteOperationTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._RouteOperation._AddTime")]
        public ExcelPropety AddTime_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.AddTime, true);
        [Display(Name = "_Model._RouteOperation._EditTime")]
        public ExcelPropety EditTime_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.EditTime, true);
        [Display(Name = "_Model._RouteOperation._LastOperationCode")]
        public ExcelPropety LastOperationCode_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.LastOperationCode);
        [Display(Name = "_Model._RouteOperation._LineCode")]
        public ExcelPropety LineCode_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.LineCode);
        [Display(Name = "_Model._RouteOperation._NextNode")]
        public ExcelPropety NextNode_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.NextNode);
        [Display(Name = "_Model._RouteOperation._NextOperationCode")]
        public ExcelPropety NextOperationCode_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.NextOperationCode);
        [Display(Name = "_Model._RouteOperation._NextOperationId")]
        public ExcelPropety NextOperationId_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.NextOperationId);
        [Display(Name = "_Model._RouteOperation._OperationCode")]
        public ExcelPropety OperationCode_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.OperationCode);
        [Display(Name = "_Model._RouteOperation._OperationId")]
        public ExcelPropety OperationId_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.OperationId);
        [Display(Name = "_Model._RouteOperation._OperationName")]
        public ExcelPropety OperationName_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.OperationName);
        [Display(Name = "_Model._RouteOperation._OrderCode")]
        public ExcelPropety OrderCode_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.OrderCode);
        [Display(Name = "_Model._RouteOperation._OrderId")]
        public ExcelPropety OrderId_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.OrderId);
        [Display(Name = "_Model._RouteOperation._ParentOperationCode")]
        public ExcelPropety ParentOperationCode_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.ParentOperationCode);
        [Display(Name = "_Model._RouteOperation._ParentOperationId")]
        public ExcelPropety ParentOperationId_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.ParentOperationId);
        [Display(Name = "_Model._RouteOperation._RouteName")]
        public ExcelPropety RouteName_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.RouteName);
        [Display(Name = "_Model._RouteOperation._RouteNumber")]
        public ExcelPropety RouteNumber_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.RouteNumber);
        [Display(Name = "_Model._RouteOperation._RouteVersion")]
        public ExcelPropety RouteVersion_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.RouteVersion);
        [Display(Name = "_Model._RouteOperation._ScheduleNumber")]
        public ExcelPropety ScheduleNumber_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.ScheduleNumber);
        [Display(Name = "_Model._RouteOperation._Sort")]
        public ExcelPropety Sort_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.Sort);
        [Display(Name = "_Model._RouteOperation._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<RouteOperation>(x => x.IsValid);

	    protected override void InitVM()
        {
            
        }

    }

    public class RouteOperationImportVM : BaseImportVM<RouteOperationTemplateVM, RouteOperation>
    {
            //import

    }

}